package com.github.wxiaoqi.security.auth.service;


import com.github.wxiaoqi.security.auth.util.user.JwtAuthenticationRequest;

public interface AuthService {
    String login(JwtAuthenticationRequest authenticationRequest) throws Exception;
    String refresh(String oldToken) throws Exception;
    void validate(String token) throws Exception;
    /**
     * 生成crm外部提供的服务crmapi的token
     * @param 用户名username,密码password
     * @author myq
     * */
    String createCrmapiToken(String username,String password)throws Exception ;
}
